package nl.science.uva.pico.operator;

import nl.science.uva.pico.Stack;

/** 
 * Pop retrieves the value at the top of the stack 
 *  
 * @author Ivo van Dongen, Karel Pieterson
 * @version 1.0
 */
public class Pop extends Operator {

	public Pop(Stack stack) {
		super(stack, null, null);
	}

	/** 
     * Pop This instruction removes the top of the stack.
     *  
     */
	@Override
	public void perform() {
		getStack().pop();
	}

}
